From: Richard M. Stallman Date: Mon, 26 Feb 1996 20:24:16 +0000 (+0000) Subject: (doprnt1): Move cast to unsigned inside a shift. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~84379 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d8e77dfd58b45e8496abba3ef06a77af4b982286;p=emacs.git (doprnt1): Move cast to unsigned inside a shift. --- diff --git a/src/doprnt.c b/src/doprnt.c index 2a3839d389e..3a1e41741c5 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -137,7 +137,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) size_bound = -size_bound; size_bound += 50; - if (size_bound > (unsigned) (1 << (BITS_PER_INT - 1))) + if (size_bound > (((unsigned) 1) << (BITS_PER_INT - 1))) error ("Format padding too large"); /* Make sure we have that much. */